//package com.wxl.rocketmq.test.consumer;
//
//import org.apache.rocketmq.spring.annotation.ConsumeMode;
//import org.apache.rocketmq.spring.annotation.MessageModel;
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
//import org.apache.rocketmq.spring.core.RocketMQListener;
//import org.springframework.stereotype.Component;
//
//@Component
//@RocketMQMessageListener(
//        topic = "order-topic",
//        consumerGroup = "order-consumer-group",
//        messageModel = MessageModel.CLUSTERING,  // 集群模式
//        consumeMode = ConsumeMode.ORDERLY        // 顺序消费
//)
//public class OrderMessageConsumer implements RocketMQListener<String> {
//
//    @Override
//    public void onMessage(String message) {
//        // 顺序消费逻辑（同一订单ID的消息会按顺序处理）
//        System.out.println("处理订单消息: " + message);
//    }
//}
